<?php
require_once 'Mobitv/Admin/Action.php';
class GroupAction extends Mobitv_Admin_Action{
    public function execute(){
        //$this->checkPermission();
        $this->updateLoginStatus();        
        $admin = isset ($_GET['admin'])? $_GET['admin'] : '';
        $this->_view->assign('admin', $admin);
        $name = isset ($_GET['name'])? $_GET['name'] : '';
        $this->_view->assign('name', $name);
        $fullname = isset ($_GET['fullname'])? $_GET['fullname'] : '';
        $this->_view->assign('fullname', $fullname);
        $mail = isset ($_GET['mail'])? $_GET['mail'] : '';
        $this->_view->assign('mail', $mail);
        $group = isset ($_GET['group'])? $_GET['group'] : '';
        $this->_view->assign('group', $group);
        $userDao = Vega_Dao::factory('Mobitv_Admin_Admin');
        $arrGroup = $userDao->getGroupList('',1);
        //var_dump($arrGroup);
        $this->_view->assign('arrGroup', $arrGroup);
        $arrGroupAdmin = $userDao->getGroupList($admin);
        $this->_view->assign('arrGroupAdmin', $arrGroupAdmin);
    }
}